﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.IO;


namespace Common.Converters
{
    public class PathFileNameConverter : IValueConverter
    {
        public PathFileNameConverter()
        {
        }

        public object Convert(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
        {
            string FullPath = (string)value;
            return Path.GetFileName(FullPath);
        }

        public object ConvertBack(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

    }


}
